package com.cytech.cloudclinic.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.cytech.cloudclinic.R;
import com.cytech.cloudclinic.bean.Patient;

import java.util.List;

public class PatientAdapter extends BaseQuickAdapter<Patient, BaseViewHolder> {
    public PatientAdapter(List<Patient> data) {
        super(R.layout.item_patient_main, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, Patient s) {
        baseViewHolder.setText(R.id.item_patient_name,s.name);
        baseViewHolder.setText(R.id.item_patient_sex,s.getGender());
        baseViewHolder.setText(R.id.item_patient_birthday,s.birthday);
        baseViewHolder.setText(R.id.item_patient_phone,s.phone);
    }
}
